﻿using System.ComponentModel.Composition;
using System.Windows;
using MediaAssistant.Data;
using MefBasic;

namespace MediaAssistant.Controls.MovieThumbnails
{
    [Export]
    public class MovieThumbnailsPresenter:APresenter<MovieThumbnailsView>
    {
        [ImportingConstructor]
        public MovieThumbnailsPresenter(MovieThumbnailsView view) : base(view)
        {
        }

        [Import]
        public LibraryDataSource DataSource
        {
            get { return (LibraryDataSource)GetValue(DataSourceProperty); }
            set { SetValue(DataSourceProperty, value); }
        }

        public static readonly DependencyProperty DataSourceProperty =
            DependencyProperty.Register("DataSource", typeof(LibraryDataSource), typeof(MovieThumbnailsPresenter), new UIPropertyMetadata(null));

    }
}
